package com.gyg.kafkademo.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
public class Logging {
    private String level;//info, error ,waring
    private String message; //data
    private String service;    // 服务名称
    private long timestamp;    // 时间戳

    public Logging(String level, String message, String service) {
        this.level = level;
        this.message = message;
        this.service = service;
        this.timestamp = System.currentTimeMillis();
    }
}
